package com.szxy.mathtest;

import java.util.Scanner;

/**
 * @Author: zwz
 * @Date:2020/10/25 11:19
 * @Description:
 **/
public class MathDemo {
    // （1800, 200, 0.03）
    public static void main(String[] args) {
        // S=sqrt(pow(x,2.0)+pow(y,2.0))-z+0.3*PI-90.9;
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入： ");
        double x = sc.nextDouble();
        double y = sc.nextDouble();
        double z = sc.nextDouble();
        System.out.println("x = " + x + " y = " + y + " z = " + z);
        double result = Math.sqrt(Math.pow(x, 2.0) + Math.pow(y, 2.0)) - z + 0.3 * Math.PI - 90.9;
        System.out.println("result = " + result);
    }
}
